package com.jp.vn.main;

import java.util.ArrayList;

import com.jp.vn.CustomAdapter.ViDuAdapter;
import com.jp.vn.Object.ThoiGian;

import android.support.v4.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;

public class FragmentThoiGian extends Fragment{
	
	ArrayList<ThoiGian> arrayThoiGian = new ArrayList<ThoiGian>();
	ListView mylist;
	
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		View view = inflater.inflate(R.layout.fragment_hdthoigian, container, false);
		mylist = (ListView) view.findViewById(R.id.list_vidu);
		
		dumyData();
		
		ViDuAdapter adapter = new ViDuAdapter(view.getContext(), arrayThoiGian);
		mylist.setAdapter(adapter);
		
		return view;
	}
	
	void dumyData(){
		arrayThoiGian.add(new ThoiGian("1:05","いちじ ごふん"));
		arrayThoiGian.add(new ThoiGian("1:10","いちじ じゅっぷん"));
		arrayThoiGian.add(new ThoiGian("1:15","いちじ じゅうごふん"));
		arrayThoiGian.add(new ThoiGian("1:20","いちじ にじゅっぷん"));
		arrayThoiGian.add(new ThoiGian("1:25","いちじ にじゅうごふん"));
		arrayThoiGian.add(new ThoiGian("1:30","いちじ さんじゅっぷん"));
		arrayThoiGian.add(new ThoiGian("9:30","くじはん"));
		arrayThoiGian.add(new ThoiGian("11:30","じゅういちじはん"));
		arrayThoiGian.add(new ThoiGian("1:45","にじじゅうごふんまえ"));
		arrayThoiGian.add(new ThoiGian("1:50","にじじゅっぷんまえ"));
	}
}
